import { BlockEnum, NodeProps } from '@/components/workflow/types'
import type { FC } from 'react'
import React from 'react'
import { ComponentDescMap } from '../../constants'
import '../style.less'

const WorkflowNode: FC<NodeProps<any>> = ({ id, data }: any) => {
  return (
    <div className="workflow-common-node">
      <div className="common-node-desc">{data.desc || ComponentDescMap[BlockEnum.Start]}</div>
    </div>
  )
}

export default React.memo(WorkflowNode)
